package fr.umlv.m2.recipes.ideas.bean;

import java.io.Serializable;

/**
 * Bean uses to define a link between a recipe and an ingredient
 * @author Christophe Chillan
 *
 */
@SuppressWarnings("serial")
public class RecipeToIngredientBean implements Serializable {
	private int recipesId;
	private int ingredientId;
	
	/**
	 * Create a recipe to ingredient liaison
	 * @param recipesId
	 * @param ingredientId
	 */
	public RecipeToIngredientBean(int recipesId, int ingredientId) {
		this.recipesId = recipesId;
		this.ingredientId = ingredientId;
	}
	
	/**
	 * Get the recipe id
	 * @return the recipe id stored in the database
	 */
	public int getRecipeId() {
		return recipesId;
	}
	
	/**
	 * Set the recipe id
	 * @param recipeId
	 */
	public void setRecipeId(int recipeId) {
		this.recipesId = recipeId;
	}
	
	/**
	 * Get the ingredient id
	 * @return the ingredient id stored in the database
	 */
	public int getIngredientId() {
		return ingredientId;
	}
	
	/**
	 * Set the ingredient id
	 * @param ingredientId
	 */
	public void setIngredientId(int ingredientId) {
		this.ingredientId = ingredientId;
	}
}
